/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.udistrital.framework.adminMenu.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nrodriguez
 */
@Entity
@Table(name = "amcnt")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Amcnt.findAll", query = "SELECT a FROM Amcnt a"),
    @NamedQuery(name = "Amcnt.findByAcnide", query = "SELECT a FROM Amcnt a WHERE a.acnide = :acnide"),
    @NamedQuery(name = "Amcnt.findByAcnnom", query = "SELECT a FROM Amcnt a WHERE a.acnnom = :acnnom"),
    @NamedQuery(name = "Amcnt.findByAcnval", query = "SELECT a FROM Amcnt a WHERE a.acnval = :acnval"),
    @NamedQuery(name = "Amcnt.findByAcntmo", query = "SELECT a FROM Amcnt a WHERE a.acntmo = :acntmo")})
public class Amcnt implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "acnide")
    private Integer acnide;
    @Column(name = "acnnom")
    private String acnnom;
    @Column(name = "acnval")
    private Integer acnval;
    @Column(name = "acntmo")
    private Integer acntmo;

    public Amcnt() {
    }

    public Amcnt(Integer acnide) {
        this.acnide = acnide;
    }

    public Integer getAcnide() {
        return acnide;
    }

    public void setAcnide(Integer acnide) {
        this.acnide = acnide;
    }

    public String getAcnnom() {
        return acnnom;
    }

    public void setAcnnom(String acnnom) {
        this.acnnom = acnnom;
    }

    public Integer getAcnval() {
        return acnval;
    }

    public void setAcnval(Integer acnval) {
        this.acnval = acnval;
    }

    public Integer getAcntmo() {
        return acntmo;
    }

    public void setAcntmo(Integer acntmo) {
        this.acntmo = acntmo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (acnide != null ? acnide.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Amcnt)) {
            return false;
        }
        Amcnt other = (Amcnt) object;
        if ((this.acnide == null && other.acnide != null) || (this.acnide != null && !this.acnide.equals(other.acnide))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.udistrital.ud.modelo.Amcnt[ acnide=" + acnide + " ]";
    }
    
}
